//
//  AddressInfoModel.swift
//  XiaoJingMallSwift
//
//  Created by beisheng03 on 2017/8/25.
//  Copyright © 2017年 beisheng. All rights reserved.
//

import UIKit

class AddressInfoModel: NSObject {
      var address = "-999"
      var area_info = "-999"
      var area_id = "-999"
      var city_id = "-999"
      var true_name = "-999"
      var address_id = "-999"
      var province_id = "-999"
      var member_id = "-999"
      var mob_phone = "-999"
     var is_default = "-999"
     var area_info_1 = "-999"
     var tel_phone : String?
     var index = 0


    
    
    
    
    init(dic : [String : AnyObject]) {
        super.init()
        
        setValuesForKeys(dic)
        
    }
    
    
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) {
        
        
    }
    
    
    //在swift中想要打印对象要以下重写属性
    override var description: String{
        let keys = ["address","area_info","area_id","city_id","true_name","address_id","province_id","member_id","mob_phone","is_default","area_info_1"]
        let dic = dictionaryWithValues(forKeys: keys)
        return "\(dic)"
    }

}
